<!DOCTYPE html>
<!-- saved from url=(0052)http://getbootstrap.com/docs/4.0/examples/dashboard/ -->
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
    <meta name="description" content="">
    <meta name="author" content="">

    <title>Dashboard Template for Bootstrap</title>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <script src="https://cdn.staticfile.org/jquery/3.2.1/jquery.min.js"></script>
    <script src="https://cdn.staticfile.org/popper.js/1.15.0/umd/popper.min.js"></script>
    <script src="https://cdn.staticfile.org/twitter-bootstrap/4.3.1/js/bootstrap.min.js"></script>
    <link rel="stylesheet" th:href="@{/css/index1.css}"/>

    <!-- Bootstrap core CSS -->
    <link th:href="@{/css/bootstrap.min.css}" rel="stylesheet">

<!--    &lt;!&ndash; Custom styles for this template &ndash;&gt;-->
    <link th:href="@{/css/dashboard.css}" rel="stylesheet">
    <style type="text/css">
        .carousel-inner img {
            width: 100%;
            height: 100%;
        }
    </style>
</head>

<body>
<!--<div th:replace="~{commons/commons::topbar}"></div>-->



<div class="container-fluid">
    <div class="row">
        <div th:replace="~{commons/commons::sidebar(active='main.html')}"></div>
        <main  class="col-md-9 ml-sm-auto col-lg-10">
            <header>
                <h1>数据可视化-ECharts</h1>
                <div class="show" >2018级数据科学与大数据技术</div>
                <div class="showTime"></div>
                <script>
                    var t = null;
                    t = setTimeout(time, 1000); //開始运行
                    function time() {
                        clearTimeout(t); //清除定时器
                        dt = new Date();
                        var y = dt.getFullYear();
                        var mt = dt.getMonth() + 1;
                        var day = dt.getDate();
                        var h = dt.getHours(); //获取时
                        var m = dt.getMinutes(); //获取分
                        var s = dt.getSeconds(); //获取秒
                        document.querySelector(".showTime").innerHTML =
                            y +
                            "年" +
                            mt +
                            "月" +
                            day +
                            "日"+
                            "-" +
                            h +
                            "时" +
                            m +
                            "分" +
                            s +
                            "秒";
                        t = setTimeout(time, 1000); //设定定时器，循环运行
                    }
                </script>
            </header>
            <div id="demo" class="carousel slide" data-ride="carousel">

                <!-- 指示符 -->
                <ul class="carousel-indicators">
                    <li data-target="#demo" data-slide-to="0" class="active"></li>
                    <li data-target="#demo" data-slide-to="1"></li>
                    <li data-target="#demo" data-slide-to="2"></li>
                    <li data-target="#demo" data-slide-to="4"></li>
                    <li data-target="#demo" data-slide-to="5"></li>
                </ul>

                <!-- 轮播图片 -->
                <div class="carousel-inner">
                    <div class="carousel-item active" style="width: 1000px;height: 400px">
                        <img src="https://static-data.gaokao.cn/upload/school/202119/1618814039_5168_thumb.jpg"  >
                    </div>
                    <div class="carousel-item" style="width: 1000px;height: 400px">
                        <img src="https://static-data.gaokao.cn/upload/school/201917/1555479094_3002_thumb.jpg">
                    </div>
                    <div class="carousel-item" style="width: 1000px;height: 400px">
                        <img src="https://static-data.gaokao.cn/upload/school/202116/1618557423_4570_thumb.jpg">
                    </div>
                    <div class="carousel-item" style="width: 1000px;height: 400px">
                        <img src="https://static-data.gaokao.cn/upload/school/202116/1618560032_8619_thumb.jpg">
                    </div>
                    <div class="carousel-item" style="width: 1000px;height: 400px">
                        <img src="https://static-data.gaokao.cn/upload/school/202116/1618559402_8820_thumb.jpg">
                    </div>
                </div>

                <!-- 左右切换按钮 -->
                <a class="carousel-control-prev" href="#demo" data-slide="prev">
                    <span class="carousel-control-prev-icon"></span>
                </a>
                <a class="carousel-control-next" href="#demo" data-slide="next">
                    <span class="carousel-control-next-icon"></span>
                </a>

            </div>
        </main>
    </div>
</div>

<!-- Bootstrap core JavaScript
================================================== -->
<!-- Placed at the end of the document so the pages load faster -->
<script type="text/javascript" src="asserts/js/jquery-3.2.1.slim.min.js"></script>
<script type="text/javascript" src="asserts/js/popper.min.js"></script>
<script type="text/javascript" src="asserts/js/bootstrap.min.js"></script>

<!-- Icons -->
<script type="text/javascript" src="asserts/js/feather.min.js"></script>
<script>
    feather.replace()
</script>

<!-- Graphs -->
<script type="text/javascript" src="asserts/js/Chart.min.js"></script>
<script>
    var ctx = document.getElementById("myChart");
    var myChart = new Chart(ctx, {
        type: 'line',
        data: {
            labels: ["Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"],
            datasets: [{
                data: [15339, 21345, 18483, 24003, 23489, 24092, 12034],
                lineTension: 0,
                backgroundColor: 'transparent',
                borderColor: '#007bff',
                borderWidth: 4,
                pointBackgroundColor: '#007bff'
            }]
        },
        options: {
            scales: {
                yAxes: [{
                    ticks: {
                        beginAtZero: false
                    }
                }]
            },
            legend: {
                display: false,
            }
        }
    });
</script>

</body>

</html>